﻿using System;

namespace CodeCamp.Models.Shared
{
    public class TimeAdjust
    {
        public static Nullable<int> UTCAdjustMinutes(string utcOffsetMinutes)
        {
            Nullable<int> utcAdjustMinutes = null;
            int utcAdjMin;
            if (!string.IsNullOrWhiteSpace(utcOffsetMinutes) && Int32.TryParse(utcOffsetMinutes, out utcAdjMin))
                utcAdjustMinutes = utcAdjMin * -1;
            return utcAdjustMinutes;
        }
    }
}